package com.homelock.entity;

import java.util.Date;

public class HlDevTemporaryPwd {
    private Long id;

    private Date createDate;

    private Date updateDate;

    private Long version;
    //unlock表的主键
    private Long unlockId;
    //密码
    private String pwd;
    //可用次数默认值是1, 如果有其他业务需求,  次数可以自定义
    private Integer usageLimit;
    //1. 永久 2. 起止 3.重复
    private Byte effectiveScope;
    //开始时间
    private Integer effectiveTime;
    //过期时间
    private Integer expireTime;
    //记录状态 默认是1 成功  0.失败
    private Boolean state;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Long getVersion() {
        return version;
    }

    public void setVersion(Long version) {
        this.version = version;
    }

    public Long getUnlockId() {
        return unlockId;
    }

    public void setUnlockId(Long unlockId) {
        this.unlockId = unlockId;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd == null ? null : pwd.trim();
    }

    public Integer getUsageLimit() {
        return usageLimit;
    }

    public void setUsageLimit(Integer usageLimit) {
        this.usageLimit = usageLimit;
    }

    public Byte getEffectiveScope() {
        return effectiveScope;
    }

    public void setEffectiveScope(Byte effectiveScope) {
        this.effectiveScope = effectiveScope;
    }

    public Integer getEffectiveTime() {
        return effectiveTime;
    }

    public void setEffectiveTime(Integer effectiveTime) {
        this.effectiveTime = effectiveTime;
    }

    public Integer getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(Integer expireTime) {
        this.expireTime = expireTime;
    }

    public Boolean getState() {
        return state;
    }

    public void setState(Boolean state) {
        this.state = state;
    }
}